package com.luyou.framework.datasource;

import org.springframework.boot.autoconfigure.AutoConfiguration;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * 数据库配置
 * @author luyou
 * @version 1.0
 * Create by 2024/7/5 9:09
 */
@AutoConfiguration
@EnableTransactionManagement(proxyTargetClass = true)
public class LuyouDataSourceAutoConfiguration {

//
//    @Bean
//    public DynamicDataSourceProvider dynamicDataSourceProvider(DynamicDataSourceProperties dynamicDataSourceProperties) {
//        return new YmlDynamicDataSourceProvider(new DefaultDataSourceCreator(), dynamicDataSourceProperties.getDatasource());
//    }
}
